package LInkedList;

public class Test {
    public static void main(String[] args) {
        MyLinkedList myLinkedList=new MyLinkedList();
        /*myLinkedList.creatList();
        myLinkedList.display();
        int size = myLinkedList.size();
        System.out.println("长度为："+size);
        System.out.println("是否存在:"+myLinkedList.contains(12));*/
/*
        myLinkedList.addFirst(12);
        myLinkedList.addFirst(23);
        myLinkedList.addFirst(34);
        myLinkedList.addFirst(45);*/

        myLinkedList.addLast(12);
        myLinkedList.addLast(23);
        myLinkedList.addLast(34);
        myLinkedList.addLast(45);
        myLinkedList.addLast(56);
        myLinkedList.display();
    }
}
